﻿using MgSoft.K3Cloud.WebApi.Common.Dto.Sal;
using MgSoft.K3Cloud.WebApi.Dto;
using System;
using System.Collections.Generic;
using System.Text;

namespace MgSoft.K3Cloud.WebApi.Common.Api.Sal
{
    /// <summary>
    /// 发货通知单
    /// </summary>
    public class Sal_DeliveryNoticeApi : BaseApi, ISal_DeliveryNoticeApi
    {
        protected override string formId => "SAL_DELIVERYNOTICE";

        public Sal_DeliveryNoticeApi(ApiServerInfo apiServerInfo, IMgLogger logger = null) : base(apiServerInfo, logger)
        {
        }

        public Sal_DeliveryNoticeApi(string serverUrl, string dbid, string userName, string password, int lcid = 2052) : base(serverUrl, dbid, userName, password, lcid)
        {
        }

        public List<SaveOutPutDto> Save(Sal_DeliveryNoticeSaveInputDto saveInputDto)
        {
            return base.Save(new SaveInputDto
            {
                FormId = formId,
                Model = saveInputDto
            });
        }
    }
}
